body {
    margin: 0;
    height: 100vh;

    display: grid;
    grid-template-rows: 5% 92% 3%;
    grid-template-columns: 1fr 6px 1fr;
    grid-template-areas:
        "header header header"
        "latex gutter preview"
        "footer footer footer";
}

#header, #footer {
    display: flex;
    align-items: center;
    justify-content: center;

    color: hsla(0, 0%, 100%, .65);
    background: #2d9961;
    font-size: 1.5vh;
}

#header {
    grid-area: header;
    font-size: 3vh;
    font-family: sans-serif;
}

#footer {
    grid-area: footer;
}

#latex-editor {
    grid-area: latex;
    height: 100%;
}

#preview {
    grid-area: preview;
    color: #333;
    border: none;
    width: 100%;
    height: 100%;
}

/* splitter */

#gutter {
    /* background-color: #eee; */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: col-resize;
}

#gutter:before {
    display: block;
    content: "";
    width: 2px;
    height: 40px;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

#gutter:hover:before {
    border-color: #999;
}

/* LaTeX logo */

.latex span {
    text-transform: uppercase;
}

.latex span:first-child {
    font-size: 0.8em;
    vertical-align: 0.2em;
    margin-left:  -0.45em;
    margin-right: -0.15em;
}
.latex span:last-child {
    margin-left: -0.2em;
    margin-right: -0.2em;
    position: relative;
    top: 0.45ex;
}
